package com.xb.loan.encryptor.util;


/**
 * 定义错误类型
 * 
 */
public class ErrorCode {

	/**
	 * 等待交易
	 */
	public final static String SUCCESS_SYS = "0000";
	/**
	 * 交易中
	 */
	public final static String TRADE_TAKING = "0001";

	/**
	 * 交易成功
	 */
	public final static String TRADE_SUCESS = "0002";

	/**
	 * 交易失败
	 */
	public final static String TRADE_FAIL = "0003";

	/**
	 * 发起成功
	 */
	public final static String UNION_SUC = "0004";
	/**
	 * 合买未满员
	 */
	public final static String UNION_NOT_FULL = "0011";
	/**
	 * 合买部分成功
	 */
	public final static String UNION_NOT_FULL_SUC = "0012";
	/**
	 * 合买满员
	 */
	public final static String UNION_FULL_SUC = "0005";
	/**
	 * 合买参与成功
	 */
	public final static String UNION_JION_SUC = "0006";
	/**
	 * xml格式错误
	 */
	public final static String XML_ERROR = "0007";
	/**
	 * 合作商id不存在或者参数与xml文件中的不一致
	 */
	public final static String ERROR_CODE_PARTNERID_DIFFER = "0008";
	/**
	 * 系统错误，即由未捕获的异常导致的错误
	 */
	public final static String ERROR_CODE_SYS = "0009";

	/**
	 * 成功
	 */
	public final static String SUCCESS = "0010";

	/**
	 * 超过最大连接数
	 */
	public final static String MORETHAN_MAX_CONNECTION = "0014";
	/**
	 * 系统错误
	 */
	public final static String ERROR_SYS = "9999";
	/**
	 * 用户不存在
	 */
	public final static String NO_EXIST_USER = "9000";
	/**
	 * 金额不足
	 */
	public final static String NO_ENOUGH_MONEY = "9001";
	/**
	 * 操作数据库失败
	 */
	public final static String DB_FAIL = "9003";
	/**
	 * 期次错误
	 */
	public final static String NO_CURRENT_ISSUE = "9004";
	/**
	 * 追号订单不存在
	 */
	public final static String NO_BOOK_ORDER = "9005";
	/**
	 * 参数为空
	 */
	public final static String PARAM_NULL = "9006";
	/**
	 * 销售期已过 停止销售
	 */
	public final static String STOP_SALE = "9008";

	/**
	 * 重复订单
	 */
	public final static String ORDER_REPEAT = "9009";

	/**
	 * 超过最大注数
	 */
	public final static String OVER_TOTAL_TICKET_SUM = "9010";

	/**
	 * 票总金额错误
	 */
	public final static String WRONG_TOTAL_MONEY = "9011";

	/**
	 * 不存在的期次
	 */
	public final static String NO_EXIST_ISSUE = "9012";

	/**
	 * 用户id错误
	 */
	public final static String NOT_CORRECT_USERID = "9013";

	public final static String NO_TRADE_PROVINCE = "9014";

	public final static String NO_EXIST_TICKET = "9015";

	/**
	 * 投注号码格式错误
	 */
	public final static String WRONG_BALLS_FORMAT = "9016";

	/**
	 * 投注金额错误
	 */
	public final static String WRONG_BET_MONEY = "9017";

	/**
	 * 超过最大允许倍数
	 */
	public final static String OVER_MAX_MULTIPLE = "9018";

	/**
	 * 追号期次数错误
	 */
	public final static String WRONG_FOLLOW_ISSUES_NUM = "9019";

	/**
	 * 订单总数与实际不匹配
	 */
	public final static String NOT_MATCH_TICKET_NUM = "9020";

	/**
	 * 不支持的停追类型
	 */
	public final static String NO_SUPPORT_STOP_FLAG = "9021";

	/**
	 * 当前期，不能停止追号
	 */
	public final static String IS_CURRENT_ISSUE = "9022";

	/**
	 * 不支持的接入商类型
	 */
	public final static String NO_SUPPORT_PARTNER_TYPE = "9023";

	/**
	 * 充值订单号重复
	 */
	public final static String CHARGE_REPEAT = "9024";

	/**
	 * 不存在获奖信息
	 */
	public final static String NO_PRIZE_LEVEL_INFO = "9050";

	/**
	 * 不存在的合作商
	 */
	public final static String NO_EXIT_PRATNER = "9051";

	/**
	 * 加密信息是不一致的
	 */
	public final static String NO_SAME_ENCRPT_INFO = "9052";
	/**
	 * 钱和票数不一致
	 */
	public final static String NO_SAME_MONEY = "9053";
	/**
	 * 重复的用户
	 */
	public final static String REPEAT_USER = "9054";
	/**
	 * 不存在的充值定单
	 */
	public final static String NO_EXIST_CHARGE_ID = "9055";
	/**
	 * 扣款异常或者帐号钱数不足
	 */
	public final static String DEDUCT_USER_ACCOUNT_ERROR = "9056";
	/**
	 * 非法数字
	 */
	public final static String PARAM_IIEGE = "9057";
	/**
	 * 权限不足
	 */
	public final static String INSUFFICIENT_PRIVILEGE = "9058";
	/**
	 * 状态不可用
	 */
	public final static String STATUS_UNAVAILABLE = "9059";
	/**
	 * 数据已存在
	 */
	public final static String EXIST_DATA = "9060";

	/**
	 * 不存在的文件
	 */
	public final static String NO_EXIST_FILE = "9061";

	/**
	 * 老密码错误
	 */
	public final static String NO_INCORRECT_PASSWD = "9062";
	/**
	 * 投注站号繁忙
	 */
	public final static String ZHI_ID_BUSY = "9063";
	/**
	 * 流水号错误
	 */
	public final static String SERIES_NO_WRONG = "9064";
	/**
	 * 超过最大允许金额
	 */
	public final static String OVER_MAX_MONEY = "9065";
	/**
	 * 用户没有注册
	 */
	public final static String USER_NOT_REGISTER = "9066";
	/**
	 * 148接口 合买总注数不正确
	 */
	public final static String UNION_NUM_NOT_CORRECT = "9067";
	/**
	 * 148接口 合买总金额不正确
	 */
	public final static String UNION_MONEY_NOT_CORRECT = "9068";
	/**
	 * 倍数不合法
	 */
	public final static String MULT_ERROR = "9069";
	/**
	 * 佣金不合法
	 */
	public final static String BROKAGERATE_ERROR = "9070";
	/**
	 * 
	 * 未查询到数据
	 */
	public final static String NO_DATA = "9100";

	public static final String TB_SUCCESS = "0";
	public static final String TB_ERROR = "100001";
	public static final String TB_CONVERT_ERROR = "100002";
	public static final String TB_PARAM_NULL = "100003";
	public static final String TB_SYS_ERROR = "100004";
	public static final String TB_INVAILID_ACCOUNT = "100005";
	public static final String TB_NOT_ENOUGH_MONEY = "200001";
	public static final String TB_WRONG_BALLS_FORMAT = "200002";
	public static final String TB_REPEAT_SEQ = "2000023";
	public static final String TB_REPEAT_NEWS = "200004";
	public static final String TB_INVALID_GAMEID = "200005";
	public static final String TB_ISSUE_NOT_START = "200006";
	public static final String TB_ISSUE_END = "200007";
	public static final String TB_OVER_LIMIT = "200008";
	public static final String TB_LIMIT_BALLS = "200009";
	public static final String TB_NO_THIS_SEQ = "200010";
	public static final String TB_VOTE_ERROR = "200020";
	public static final String TB_NOT_VOTE = "200021";
	public static final String TB_SEQ_ERROR = "200022";
	public static final String TB_STAKE_SUCCESS = "200023";
	public static final String TB_STAKE_FAIL = "200024";
	public static final String TB_NO_PRIZE = "200025";

	private String errorCode = null;
	private String msg = null;
	private String name = null;

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
